package com.site.wisdom_construction.entity.userAuthorityModule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-03-03 
 */
@ApiModel (value ="用户权限表实体类", description = "UserRole")
public class UserRole {
	/**
	 * 用户权限映射表id
	 */
   	@ApiModelProperty(value = "用户权限映射表id", name = "id")
	private Integer id;

	/**
	 * 用户id
	 */
   	@ApiModelProperty(value = "用户id", name = "userId")
	private Integer userId;

	/**
	 * 权限id
	 */
   	@ApiModelProperty(value = "权限id", name = "roleId")
	private Integer roleId;

	public UserRole(){ super(); }

	public UserRole(Integer id, Integer userId, Integer roleId) {
		this.id = id;
		this.userId = userId;
		this.roleId = roleId;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "{" +
				"id='" + id + '\'' +
				", userId='" + userId + '\'' +
				", roleId='" + roleId + '\'' +
				'}';
	}
}
